package com.ulife.order.components.core.platform;

/**
 * Created by Lbq on 2016/06/07.
 */
public enum RefundResponseCode {
    Success(1),
    Failure(2),
    Repeat(3),
    StatusError(4);

    private int value = 1;

    private RefundResponseCode(int value) {
        this.value = value;
    }

    public static RefundResponseCode valueOf(int value){
        switch (value){
            case 1:return Success;
            case 2:return Failure;
            case 3:return Repeat;
            case 4:return StatusError;
            default:return null;
        }
    }
    public int value(){
        return this.value;
    }
}
